package jam.model;

//import jam.network.NetworkController;
//import jam.network.message.*;
//import jam.model.User;

import java.util.Scanner;
import java.util.ArrayList;

/**
 * Class to represent the current state of the client
 * keeping track of the logged in user, their contact list, active chats etc.
 */
public class ClientModel {


	private User user;
	private ArrayList<User> cl;
	private ArrayList<String> channels;

	/**
	 * Empty Constructor
	 */
	public ClientModel() {
		user = null;
		cl = new ArrayList<User>();
		channels = new ArrayList<String>();
	}

	/* functions to update model based on events */
	public void addtocl(User u) {		cl.add(u);	}
	public void removefromcl(String mate) {		cl.remove(mate);	}
	public void addChannel(String channel) {		channels.add(channel);	}
	public void leaveChannel(String channel) {		channels.remove(channel);	}

	/* getters and user setter */
	public User getUser() {		return user;	}
	public void setUser(User u) {		user = u;	}
	public ArrayList<User> getCL() { 		return cl; 	}
	public ArrayList<String> getChannels() {		return channels;	}



}